package com.platform.module.user.controller;

import com.platform.module.common.base.BaseReq;
import com.platform.module.common.base.CommonResp;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Long
 **/
@Slf4j
@RestController
@Tag(
        name = "测试接口",
        description = "测试接口"
)
@RequestMapping("/data/test")
@AllArgsConstructor
public class DataTestController {


    @GetMapping("/test.v1")
    @Operation(summary = "测试接口", description = "测试接口")
    public CommonResp<String> list(@Parameter(hidden = true) BaseReq req) {
        log.info("appId: {} userId: {}", req.getAppId(), req.getUserId());
        return CommonResp.ok("data");
    }


}
